extends LabelWithFont

onready var MAIN = find_parent("MAIN")
var score = 0

func _ready():
	update_label()

func set_score (sc):
	score = sc
	update_label()
	if score >= MAIN.score_for_reward:
		MAIN.unlock_reward()

func update_label():
	text = "HIGH SCORE: " + str(score)
